unit FormaPagamentoSearchFr;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
  ExtCtrls, Buttons, StdCtrls, MainSearchFr;

type

  { TFormaPagamentoSearchFrame }

  TFormaPagamentoSearchFrame = class(TMainSearchFrame)
    sigla_forma_pagamento: TEdit;
    desc_forma_pagamento: TEdit;
    Label1: TLabel;
    Label2: TLabel;
    procedure LocalizarButtonClick(Sender: TObject);
  private
    { private declarations }
  public
    { public declarations }
  end;

implementation

uses FormaPagamentoDM,QueryConditions;

{ TFormaPagamentoSearchFrame }

procedure TFormaPagamentoSearchFrame.LocalizarButtonClick(Sender: TObject);
var
  condicoes: TQueryConditions;
begin
  condicoes := TQueryConditions.Create(CON_AND);
  condicoes.Add('sigla_forma_pagamento', sigla_forma_pagamento.Text);
  condicoes.AddText('desc_forma_pagamento', desc_forma_pagamento.Text);
  FormaPagamentoData.Search(Condicoes, 'forma_pagamento');
end;

initialization
  {$I formapagamentosearchfr.lrs}

end.

